<?php

namespace app\common\exception;

/**
 * 在控制器中使用
 * throw new MyException([],1);
 * throw new MyException(['code'=>1001,'msg'=>'异常']);
 */
class MyException extends BaseException
{
    public $code = 1001;
    public $msg = '异常';

    public function __construct($params = [], $type = 0)
    {
        parent::__construct($params, $type);
    }
}
